    <?php 
    $tab_menu='';
    if(!empty($_W['global']['tab_menu'])){
        $tab_menu = object_array(json_decode($_W['global']['tab_menu']));
    }
    ?>
    <footer class="footer_" style="margin:0">
     <ul>
        {if !empty($tab_menu['list'])}
        <?php
         $i=1;
         ?>
        {loop $tab_menu['list'] $m}
        
        <?php 
        $i=$i+1;
        $urllist=tomobileurl($m); 
        ?>
    
    {if $i==3}
                 <li>
          <a href="{$urllist['url']}" class="covers" id="{$urllist['turl']}">
            <img style="width:42px; height: 42px; margin-top: 2px" src="{$m['img']}">
            <span class="tabbar-txt">{$m['name']}</span>
          </a>
        </li>
            {else}
           <li>
          <a href="{$urllist['url']}"  id="{$urllist['turl']}">
            <img src="{$m['img']}" class="tabber-style">
            <span class="tabbar-txt">{$m['name']}</span>
          </a>
        </li>
        {/if}
            {/loop}
        {else}
      
        <li>
          <a id="index" href="<?php echo $this->createMobileUrl('index',array('pix'=>0))?>">
            {if $_GPC['do']=='index'} 
            <img src="../addons/nets_haojk/template/mobile/img/tabbar-index-selected.png" class="tabber-style {if $_GPC['do']=='index'} active {/if}"/>
            {else}
            <img src="../addons/nets_haojk/template/mobile/img/tabbar-index-default.png" class="tabber-style {if $_GPC['do']=='index'} active {/if}"/>
            {/if}
            <span class="tabbar-txt">首页</span>
          </a>
        </li>
        <li>
          <a id="choiceness" href="<?php echo $this->createMobileUrl('choiceness',array('pix'=>1))?>">
            {if $_GPC['do']=='choiceness'} 
               <img src="../addons/nets_haojk/template/mobile/img/tabbar-buy-selected.png" class="tabber-style {if $_GPC['do']=='choiceness'} active {/if}"/>
               {else}
               <img src="../addons/nets_haojk/template/mobile/img/tabbar-buy-default.png" class="tabber-style {if $_GPC['do']=='choiceness'} active {/if}"/>
               {/if}
            <span class="tabbar-txt">好券精选</span>
          </a>
        </li>
        <li>
          <a id="searchlist" href="<?php echo $this->createMobileUrl('searchlist',array('pix'=>1))?>" class="covers" style="padding: 5px 0 0px 0">
            {if $_GPC['do']=='searchlist'} 
               <img style="width:42px; height: 42px; margin-top: 2px" src="../addons/nets_haojk/template/mobile/img/tabbar-search-selected.png" class="tabber-style {if $_GPC['do']=='searchlist'} active {/if}"/>
               {else}
               <img style="width:42px; height: 42px; margin-top: 2px" src="../addons/nets_haojk/template/mobile/img/tabbar-search-default.png" class="tabber-style {if $_GPC['do']=='searchlist'} active {/if}"/>
               {/if}
            <span class="tabbar-txt">超级搜索</span>
          </a>
        </li>
        <li>
          <a id="pingou" href="<?php echo $this->createMobileUrl('pingou',array('pix'=>2))?>">
           {if $_GPC['do']=='pingou'} 
               <img src="../addons/nets_haojk/template/mobile/img/tabbar-pingou-selected.png" class="tabber-style {if $_GPC['do']=='pingou'} active {/if}"/>
               {else}
               <img src="../addons/nets_haojk/template/mobile/img/tabbar-pingou-default.png" class="tabber-style {if $_GPC['do']=='pingou'} active {/if}"/>
               {/if}
            <span class="tabbar-txt">拼购</span>
          </a>
        </li>
        <li>
          <a id="my" href="<?php echo $this->createMobileUrl('my',array('pix'=>2))?>">
            {if $_GPC['do']=='my'} 
               <img src="../addons/nets_haojk/template/mobile/img/tabbar-wode-selected.png" class="tabber-style {if $_GPC['do']=='my'} active {/if}"/>
               {else}
               <img src="../addons/nets_haojk/template/mobile/img/tabbar-wode-default.png" class="tabber-style {if $_GPC['do']=='my'} active {/if}"/>
               {/if}
            <span>我</span>
          </a>
        </li>
      
        {/if}
        </ul>
    </footer>
    
   
{if empty($_W["fans"]["follow"]) && $_W['os']=='mobile'}
<div class="shake-list1" id="followinfo">
    <ul>
        <li>
            <div class="headportrait mtop"><img src="{$_W['account']['avatar']}"></div>
            <div class="head-left">
                <div class="head-info1"> <span>{$_W['account']['name']}</span> </div>
                <div class="btn-right">
        <a href="{$_W['hjk_global']['subscribeurl']}" class="btn-receive1">关注</a>
        <a onclick="$('.shake-list1').hide()" class="btn-receive2">关闭</a>
        </div>         
            </div>
        </li>
    </ul>
</div>
{else}
<div  id="followinfo"></div>
{/if}
<style>
.footerbot { position: fixed;bottom: 0px; left: 0px;}
.m-tabbar{ width: 100%; overflow: hidden; padding:9px 0 0 0; height: auto; position: fixed; left: 0px; bottom: 0px; background: #fff; border-top:1px solid #E2E2E2}
.m-tabbar a{ /*width:33.33%; float: left; text-align: center*/}
.m-tabbar a label  { display: block; margin: 0 auto}
.m-tabbar .tabbar-txt{ font-size:13px;display: block;}
.tabbar-item {-webkit-box-flex: 1;-webkit-flex: 1;-ms-flex: 1;flex: 1;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-flex-direction: column;-ms-flex-direction: column;flex-direction: column;-webkit-box-pack: center;-webkit-justify-content: center;-ms-flex-pack: center;justify-content: center;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;}
.m-tabbar, .navbar-center {display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;}
.footer_ {position: fixed;bottom: 0;background: #fff;width: 100% !important;height: 50px;max-width: 750px;z-index: 9;box-shadow: 0 -2px 10px rgba(51,51,51,.1);}
.footer_ ul li {width: 20%;text-align: center;text-align: center;float: left;display: block;-webkit-box-flex: 1;-webkit-flex: 1;flex: 1;}
.footer_ ul li a {color: #666;font-size: 12px;display: block;-webkit-box-flex: 1;-webkit-flex: 1;flex: 1;}
.footer_ ul li img {width: 27px;margin-top: 7px;height: 27px;overflow: hidden;}
.footer_ .active {color: #f10215;}
.footer_ ul li span {margin-left: 0px;display: block;margin-top: 0px;}
.covers {width: 52px;height: 52px;border-radius: 40px;position: absolute;top: -15px;left: 0;right: 0;margin: 0 auto;box-shadow: 0 -2px 2px hsla(0,0%,40%,.1);padding: 5px;background-color: #fff;}
.footer_ ul li:nth-child(4) {margin-left: 20%;}
</style>
<script>
    function isWeiXin(){ 
    var ua = window.navigator.userAgent.toLowerCase(); 
    if(ua.match(/MicroMessenger/i) == 'micromessenger'){ 
    return true; 
    }else{ 
    return false; 
    } 
    } 
    
        if(isWeiXin()){
            document.getElementById("followinfo").style.display="block";
        }else{
            document.getElementById("followinfo").style.display="none";
        }
    
</script>
<!-- <script type="text/html" id="dialog">
{{each result as value i}}
    <div class="bullet">
      <img src="" alt="">
      <span class="">{{value.msg}}</span>
    </div>
</script> -->
<!-- {{/each}} -->
 <script>  
// var timer=null;
//    mesage();
// function mesage(){  
//   timer=setInterval(function(){
     
//    $.ajax({
//           url: 'http://localhost:801/app/index.php?i=56&c=entry&do=api&m=nets_haojk&oper=AjaxGetOrderTipInfo',
//           type: 'post',
//           data: {

//           },
//           success: function(data) {
//             console.log(data)
//             var html=template("dialog",data);
//              $(".bullet").html(html);
           
//         }
//   },3000)
// }   
// //去掉定时器的方法  
// clearInterval(timer);  
</script>
